from heima_toutiao.apps.users import user_api, view
# 测试mysql
user_api.add_resource(view.UserInfoResource,'/mysql')
# 测试redis
user_api.add_resource(view.CacheUserInfoResource,'/redis')
# 短信验证码路由
user_api.add_resource(view.SMScodeResource,'/sms/codes/<phone:mobile>/')
# 注册登录路由
user_api.add_resource(view.LoginResource,'/authorizations')
# 个人中心
user_api.add_resource(view.UserCenterResouce,'/user')
# 关注用户
user_api.add_resource(view.FollowResource,'/user/followings')
# 取消关注用户
user_api.add_resource(view.UnFollowResource,'/user/followings/<int:target>')
# 用户浏览记录
user_api.add_resource(view.ReadingHistoryResource,'/user/histories')
# 用户关注列表
user_api.add_resource(view.FollowingsResource,'/user/followings')
# 粉丝列表
user_api.add_resource(view.FansResource,'/user/followers')
